/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jdemonbd.DAO;

/**
 *
 * @author kakashi
 */
public class testcDAO_byDemon {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
    //cDao(String driver,String server,String user, String pass, String port,String db)
        // Probando mySQL
        cDao test = new cDao(cDao.MYSQL,"localhost", "root", "", "3306", "dbpapeletas");
        System.out.println(test.getMessage());
        test.conectar();
        System.out.println(test.getMessage());
        test.cerrar();
        System.out.println(test.getMessage());
        //test = null;
        
        // Probando SQLite
        System.out.println("PROBANDO SQLITE");
        cDao test1 = new cDao(cDao.SQLITE,"","","","", "testXDDD");
        System.out.println(test1.getMessage());
        test1.conectar();
        System.out.println(test1.getMessage());
        test1.cerrar();
        System.out.println(test1.getMessage());
        test1 = null;
        //System.gc();
        System.exit(0);
        
    }

}
